package com.study.service.impl;

import com.study.dto.MyQuery;
import com.study.dao.MyUserDao;
import com.study.dto.MyUser;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author tanglingyu
 * @Date: 2021/06/15/ 18:56
 * @Description
 */
@Service
public class MyUserService {

  @Autowired
  private MyUserDao myUserDao;

  public List<MyUser> getAllUser() {
    return myUserDao.getAllUser();
  }

  public MyUser getOne(Long id) {
    return myUserDao.getOne(id);
  }

  public Integer addUser(MyUser user) {
    return myUserDao.addUser(user);
  }

  public MyUser selectNested(MyQuery myQuery){
    return myUserDao.selectNested(myQuery);
  }
}
